local addonName = "PSLibBar";
local Addon = LibStub("AceAddon-3.0"):GetAddon(addonName);
local pluginName = "Currency";


L = {};
L["Plugin.Title"] = "Currency";
L["Plugin.Description"] = [[Every option table has to start with a head group node. It can have a name and an icon, but only the group-type and the args table are required.

You can nest groups as deep as you need them to be, and include any options on any level. Of course not everything makes sense from a UI design perspective.

Nearly all parameters can be inherited through the table tree. For example, you can define one get handler on the group, and all member nodes (or member nodes of sub-groups) will use this get handler, unless overriden.
Currently inherited are: set, get, func, confirm, validate, disabled, hidden]];

local Module = {};

local mt = { __index = {} };
mt.__index["Create"] = function(self)
	self.asd = "asd";
	print("Created");
end

function Module:Create()
	return setmetatable({},mt);
end

local plugin = 
{
	name = L["Plugin.Title"],
	description = L["Plugin.Description"],
	version = 1.0,
	author = "BlackGad",
	factory = Module,
};

Addon:RegisterPlugin(pluginName, plugin);